// import './assets/main.css'
import '@/assets/scss/index'

import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

// 注册svg图标
import 'virtual:svg-icons-register'



const app = createApp(App)

// 注册SvgIcon.vue为全局组件
import SvgIcon from "@/components/SvgIcon.vue"
app.component('SvgIcon',SvgIcon);

// element-plus 完全引入
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

// element-plus 中文配置
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'

app.use(ElementPlus, {
  locale: zhCn,
})

app.use(createPinia())
app.use(router)

app.mount('#app')
